import request from '@/utils/request'

// 查询扣分父类型列表
export function listParenttype(query) {
  return request({
    url: '/gxs/parenttype/list',
    method: 'get',
    params: query
  })
}

// 查询扣分父类型详细
export function getParenttype(gxsParenttypeId) {
  return request({
    url: '/gxs/parenttype/' + gxsParenttypeId,
    method: 'get'
  })
}

// 新增扣分父类型
export function addParenttype(data) {
  return request({
    url: '/gxs/parenttype',
    method: 'post',
    data: data
  })
}

// 修改扣分父类型
export function updateParenttype(data) {
  return request({
    url: '/gxs/parenttype',
    method: 'put',
    data: data
  })
}

// 删除扣分父类型
export function delParenttype(gxsParenttypeId) {
  return request({
    url: '/gxs/parenttype/' + gxsParenttypeId,
    method: 'delete'
  })
}
